<?php
	
class App_Forms_LogonForm extends Zend_Form
{
	public function __construct()
	{
		$userName = new Zend_Form_Element_Text('username');
		$userName->setLabel('Username:');
		
		$pwd = new Zend_Form_Element_Password('password');
		$pwd->setLabel('Password:');
		
		$submit = new Zend_Form_Element_Submit('Log on');
		
		$this->addElements(array(
			$userName,
			$pwd,
			$submit
		));
		
		$this->setDecorators(array(
			'FormElements',
			array('HtmlTag', array('tag' => 'dl')),
			'Form'
		));
	}
}